package com.wesh.home.exception;

import com.wesh.home.model.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class FallBackException {

    private final static Logger logger = LoggerFactory.getLogger(FallBackException.class);

    public static Result fallback(Integer id, Throwable throwable){
        logger.error("异常：" + id, throwable.getMessage());
        return Result.error();
    }

}
